package com.peter.user;

import com.peter.order.IOrderService;
import com.peter.order.ITestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Reference
    private IOrderService orderService;

    @Reference
    private ITestService testService;

    @GetMapping("test")
    public String test(){
        return orderService.queryOrderList();
    }

    @GetMapping("/get")
    public String get(){
        return testService.sayHello();
    }

}
